package com.xj.common.bussiness.deviceJpg.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mars
 * @since 2017-08-24
 */
@TableName("tb_device_jpg")
public class TbDeviceJpg extends Model<TbDeviceJpg> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 设备mac
     */
	@TableField(value="device_mac")
	private String deviceMac;
    /**
     * 图片
     */
	private byte[] jpg;
    /**
     * 装载次数
     */
	@TableField(value="load_number")
	private Double loadNumber;
    /**
     * 电磁量
     */
	private Double battery;
	@TableField(value="create_time")
	private Date createTime=new Date();
	/**
	 *
	 */
	private String mark;
	/**
	 *
	 */
	@TableField(value="is_charge")
	private Integer isCharge;
	/**
	 *
	 */
	private String address;
	
	


	public Integer getIsCharge() {
		return isCharge;
	}

	public void setIsCharge(Integer isCharge) {
		this.isCharge = isCharge;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getDeviceMac() {
		return deviceMac;
	}

	public void setDeviceMac(String deviceMac) {
		this.deviceMac = deviceMac;
	}

	public byte[] getJpg() {
		return jpg;
	}

	public void setJpg(byte[] jpg) {
		this.jpg = jpg;
	}

	public Double getLoadNumber() {
		return loadNumber;
	}

	public void setLoadNumber(Double loadNumber) {
		this.loadNumber = loadNumber;
	}

	public Double getBattery() {
		return battery;
	}

	public void setBattery(Double battery) {
		this.battery = battery;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
